<div class="span9">
  <div class="thumbnail"> 

    <ul class="breadcrumb">
      <li><a href="{:U(GROUP_NAME . '/Index/index')}">用户管理</a> <span class="divider">/</span></li>
      <li class="active">用户列表</li>
    </ul>

    <table class="table">
      <caption><h3>用户列表</h3></caption>
      <thead>
        <tr>
          <th>ID</th>
          <th>用户名</th>
          <th>用户邮箱</th>
          <th>状态</th>
          <!-- <th>生日</th> -->
          <!-- <th>注册时间</th> -->
          <th>修改资料</th>
          <th>删除用户</th>
          <th>配置角色权限</th>
        </tr>
      </thead>
      <tbody>
        <volist name="users" id="u">
          <tr>
            <td>{$u.u_id}</td>
            <td>{$u.username}</td>
            <td>{$u.email}</td>
            <td>
              <if condition="$u['status'] eq 1">
                开启
                <else />
                关闭
              </if>
            </td>
            <!-- <td>{$u.birthday}</td> -->
            <td>
              <a href="" data-toggle="modal" data-target="#modalEditUser"><i class="icon-edit"></i></a>
            </td>
            <td>
              <a href="{:U(GROUP_NAME . '/Index/delUserHandle', array('u_id' => $u['u_id']))}" onclick="return confirm('确定将此用户删除?')"><i class="icon-remove"></i></a>
            </td>
            <td>
              <a href="{:U(GROUP_NAME . '/Index/userRole', array('id' => $u['u_id']))}">配置角色</a>
            </td>
          </tr>
        </volist>
        
      </tbody>
    </table>
  </div>
</div>
 
<!-- Modal -->
<div id="modalEditUser" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">修改用户资料</h3>
  </div>
  <div class="modal-body">
    <!-- 用户名 -->
    <form class="form-horizontal" action="{:U(GROUP_NAME . '/Index/updateUserHandle')}" method="post">
      <div class="control-group">
        <label class="control-label" for="username">用户名</label>
        <div class="controls">
          <input type="text" id="username" name="username" placeholder="用户名">
        </div>
      </div>
      <!-- 邮箱 -->
      <div class="control-group">
        <label class="control-label" for="Email">邮箱</label>
        <div class="controls">
          <input type="text" id="Email" name="email" placeholder="邮箱">
        </div>
      </div>
      <!-- 状态 -->
      <div class="control-group">
        <label class="control-label" for="status">状态</label>
        <div class="controls">
          <select name="status" id="">
            <option value="">开启</option>
            <option value="">关闭</option>   
          </select>
        </div>
      </div>
      <!-- qq -->
      <div class="control-group">
        <label class="control-label" for="qq">QQ</label>
        <div class="controls">
          <input type="text" id="qq" name="qq" placeholder="QQ">
        </div>
      </div>
    </form>
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
    <button class="btn btn-primary">Save changes</button>
  </div>
</div>


